package domain;

public class Transaction {

	private static final int WITHDRAWALS = 1; //取款
	private static final int DEPOSIT = 2; // 存款
	private static final int TRANSFER = 3; // 转账
	private static final int INQUIRE = 4; // 查询
	private static final int LOGOUT = 5; // 退卡
	
	private String description;
	
	public Transaction(int businessNo) {
		switch (businessNo) {
		case WITHDRAWALS:
			description = "取款";
			break;
		case DEPOSIT:
			description = "存款";
			break;
		case TRANSFER:
			description = "转账";
			break;
		case INQUIRE:
			description = "查询";
			break;
		case LOGOUT:
			description = "退卡";
			break;
		}
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
	
}
